package com.aitoedu.server.dto;

import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.util.List;

@Data
@Schema(description = "教师自建题目时传递的数据模型")
public class SetDTO {

    @Schema(description = "题目类型:1单选,2多选,3判断,4填空,5论述")
    private Integer type;

    @Schema(description = "题目")
    private String question;

    @Schema(description = "选项,类型为判断填空论述时为null")
    private List<String> opts;

    @Schema(description = "非判断答案，其余为null")
    private List<String> answers;

    @Schema(description = "判断答案,1正确,0错误")
    @JsonProperty(value = "aJudge")
    private Integer aJudge;

    @Schema(description = "题目分数")
    private Integer score;

    @Schema(description = "若为填空则是填空各空的分值，其余为null")
    private List<Integer> everyBlank;

    @Schema(description = "若为多选则是多选的少选的分值，其余为null")
    private Integer shortChoose;
}
